package top.twoteam.equipment.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.twoteam.equipment.service.DataDictionaryService;
import top.twoteam.equipment.entity.DataDictionaryVO;

import java.util.List;

/**
 * @author binghan
 * @version 1.0
 * @description: TODO 数据字典
 * @date 2022/6/2 21:25
 */
@RestController
@RequestMapping("/dataDictionary")
public class DataDictionaryController {

    @Autowired
    DataDictionaryService dataDictionaryService;

    @GetMapping("/queryAll")
    public List<DataDictionaryVO> queryDataDictionary() {
        return dataDictionaryService.queryDataDictionary();
    }
}
